﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage/Home.Master" AutoEventWireup="true" CodeBehind="Product.aspx.cs" Inherits="TTMarketing.Admin.Product" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHeader" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceMain" runat="server">
<asp:Panel ID="Panel1" runat="server" Width="100%">
        <fieldset>
            <legend>Thông tin sản phẩm</legend>
            
            <table width="100%">
                <tr>
                    <td width="200px">
                        <asp:Label ID="lblUserName0" runat="server" Text="Thể loại SP"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadComboBox ID="cmbType" Runat="server" Width="100%">
                            <Items>
                                <telerik:RadComboBoxItem runat="server" Owner="cmbType" 
                                    Text="Tên thể loại tin tức" Value="Tên thể loại sản phẩm" />
                            </Items>
                        </telerik:RadComboBox>
                    </td>
                </tr>
                <tr>
                    <td width="200px">
                        <asp:Label ID="lblUserName1" runat="server" Text="Loại SP"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadComboBox ID="cmbCate" Runat="server" Width="100%">
                            <Items>
                                <telerik:RadComboBoxItem runat="server" Owner="cmbCate" 
                                    Text="Tên thể loại tin tức" Value="Tên thể loại sản phẩm" />
                            </Items>
                        </telerik:RadComboBox>
                    </td>
                </tr>
                <tr>
                    <td width="200px">
                        <asp:Label ID="lblUserName2" runat="server" Text="Hãng SX"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadComboBox ID="cmbManuFactory" Runat="server" Width="100%">
                            <Items>
                                <telerik:RadComboBoxItem runat="server" Owner="cmbManuFactory" 
                                    Text="Tên thể loại tin tức" Value="Tên thể loại sản phẩm" />
                            </Items>
                        </telerik:RadComboBox>
                    </td>
                </tr>
                <tr>
                    <td width="200px">
                        <asp:Label ID="lblUserName3" runat="server" Text="Tên sản phẩm"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtName" Runat="server" Width="100%">
                        </telerik:RadTextBox>
                    </td>
                </tr>
                <tr>
                    <td width="200px">
                        <asp:Label ID="lblUserName4" runat="server" Text="Số hiệu"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtSeriNumber" Runat="server" Width="100%">
                        </telerik:RadTextBox>
                    </td>
                </tr>
                <tr>
                    <td width="200px">
                        <asp:Label ID="lblUserName" runat="server" Text="Giá bán"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadNumericTextBox ID="ntbPrice" Runat="server" MinValue="0" 
                            ShowSpinButtons="True">
                            <NumberFormat DecimalDigits="0" />
                        </telerik:RadNumericTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblOrderRequest6" runat="server" Text="Lượt xem"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadNumericTextBox ID="ntbView" Runat="server" MinValue="0" 
                            ShowSpinButtons="True">
                            <NumberFormat DecimalDigits="0" />
                        </telerik:RadNumericTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblOrderRequest1" runat="server" Text="Trạng thái"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadComboBox ID="cmbStatus" Runat="server">
                            <Items>
                                <telerik:RadComboBoxItem runat="server" Text="Ẩn" Value="1" Owner="cmbStatus" />
                                <telerik:RadComboBoxItem runat="server" Text="Hiện" Value="0" 
                                    Owner="cmbStatus" />
                            </Items>
                        </telerik:RadComboBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblOrderRequest5" runat="server" Text="Ẩn"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadComboBox ID="cmbVisible" Runat="server">
                            <Items>
                                <telerik:RadComboBoxItem runat="server" Owner="cmbVisible" Text="Ẩn" 
                                    Value="1" />
                                <telerik:RadComboBoxItem runat="server" Owner="cmbVisible" Text="Hiện" 
                                    Value="0" />
                            </Items>
                        </telerik:RadComboBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblOrderRequest3" runat="server" Text="Hình ảnh"></asp:Label>
                        <br />
                        (Cỡ 200px x 120px)</td>
                    <td>
                        <asp:Image ID="Image1" runat="server" Height="120px" Width="200px" />
                        &nbsp;<br />
                        <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" 
                            AllowedFileExtensions="jpeg,jpg,gif,png,bmp" MaxFileInputsCount="1" 
                            TargetFolder="~/Image/Upload" TargetPhysicalFolder="~/Image/Upload">
                        </telerik:RadAsyncUpload>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblOrderRequest" runat="server" Text="Ghi chú"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtSummary" Runat="server" Height="100px" 
                            TextMode="MultiLine" Width="100%">
                        </telerik:RadTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblOrderRequest4" runat="server" Text="Nội dung"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadEditor ID="RadEditor1" Runat="server" Width="100%">
                            <Content>
</Content>
                            <ImageManager DeletePaths="~/Image/Editor" MaxUploadFileSize="2048000" 
                                UploadPaths="~/Image/Editor" />
                            <DocumentManager DeletePaths="~/Image/Editor" MaxUploadFileSize="2048000" 
                                UploadPaths="~/Image/Editor" />
                            <FlashManager DeletePaths="~/Image/Editor" MaxUploadFileSize="2048000" 
                                UploadPaths="~/Image/Editor" />
                            <MediaManager DeletePaths="~/Image/Editor" MaxUploadFileSize="2048000" 
                                UploadPaths="~/Image/Editor" />
                        </telerik:RadEditor>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" Text="Lưu" />
                        &nbsp;
                        <asp:Button ID="btnClear" runat="server" Text="Đóng" />
                        &nbsp;
                        <input id="Reset1" type="reset" value="Reset" />
                    </td>
                </tr>
            </table>
            <br />
            <asp:HiddenField ID="hfId" runat="server" />
            <br />
            
        </fieldset>
    </asp:Panel>
    <asp:Panel ID="Panel2" runat="server" Width="100%">
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" 
            AllowSorting="True" DataSourceID="odsProduct" GridLines="None" 
            ShowFooter="True">
            <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
                <Selecting AllowRowSelect="True" />
            </ClientSettings>
            <MasterTableView AutoGenerateColumns="False" DataSourceID="odsProduct">
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="Id" DataType="System.Int32" HeaderText="Id" 
                        SortExpression="Id" UniqueName="Id">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="SeriNumber" HeaderText="SeriNumber" 
                        SortExpression="SeriNumber" UniqueName="SeriNumber">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name" 
                        SortExpression="Name" UniqueName="Name">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Price" HeaderText="Price" 
                        SortExpression="Price" UniqueName="Price" DataType="System.Single">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Detail" 
                        HeaderText="Detail" SortExpression="Detail" UniqueName="Detail">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Image" 
                        HeaderText="Image" SortExpression="Image" UniqueName="Image">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Number" DataType="System.Int32" 
                        HeaderText="Number" SortExpression="Number" UniqueName="Number">
                    </telerik:GridBoundColumn>
                    <telerik:GridCheckBoxColumn DataField="Visible" DataType="System.Boolean" 
                        HeaderText="Visible" SortExpression="Visible" UniqueName="Visible">
                    </telerik:GridCheckBoxColumn>
                    <telerik:GridCheckBoxColumn DataField="Status" DataType="System.Boolean" 
                        HeaderText="Status" SortExpression="Status" UniqueName="Status">
                    </telerik:GridCheckBoxColumn>
                    <telerik:GridBoundColumn DataField="FactoryId" DataType="System.Int32" 
                        HeaderText="FactoryId" SortExpression="FactoryId" UniqueName="FactoryId">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Summary" HeaderText="Summary" 
                        SortExpression="Summary" UniqueName="Summary">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="View" DataType="System.Int32" 
                        HeaderText="View" SortExpression="View" UniqueName="View">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
            <HeaderContextMenu EnableAutoScroll="True">
            </HeaderContextMenu>
        </telerik:RadGrid>
        <asp:ObjectDataSource ID="odsProduct" runat="server" SelectMethod="getAll" 
            TypeName="TTBusiness.clsBSProduct"></asp:ObjectDataSource>
    </asp:Panel>
</asp:Content>
